package com.aloha.springframework.test.aop;

import com.aloha.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @author DaiZhiHeng
 * @date 2023/7/10 15:39
 */
public class AfterAdviceImpl implements AfterReturningAdvice {

    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("(after)被代理的方法名：" + method.getName() + " ====> 返回的结果是：" + returnValue);
    }
}
